package org.jeecg.modules.xl.order.mapper;

import java.util.List;

import org.jeecg.modules.xl.h5api.vo.CornerNum;
import org.jeecg.modules.xl.order.dto.OrderDetailNew;
import org.jeecg.modules.xl.order.entity.XlCustomerOrderDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Description: xl_customer_order_detail
 * @Author: jeecg-boot
 * @Date:   2024-10-20
 * @Version: V1.0
 */
public interface XlCustomerOrderDetailMapper extends BaseMapper<XlCustomerOrderDetail> {

	/**
	 * 通过主表id删除子表数据
	 *
	 * @param mainId 主表id
	 * @return boolean
	 */
	public boolean deleteByMainId(@Param("mainId") String mainId);

  /**
   * 通过主表id查询子表数据
   *
   * @param mainId 主表id
   * @return List<XlCustomerOrderDetail>
   */
	public List<XlCustomerOrderDetail> selectByMainId(@Param("mainId") String mainId);

	/**
	 * 订单商品未发货明细
	 * @param id
	 * @return
	 */
    List<XlCustomerOrderDetail> queryOrderDetailNotShipmentById(String id);

    List<OrderDetailNew> queryNewOrderDetailByOrderCode(@Param("orderCode") String orderCode);

	List<CornerNum> getCornerNum(@Param("mystoreStr")  String mystoreStr);
}
